﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Include/Admin.master" AutoEventWireup="true" CodeFile="Manage.aspx.cs" Inherits="Admin_JJFDB_Manager" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="../../Style/Common/DatePage.css" rel="stylesheet" type="text/css" />
    <link href="../../Scripts/jquery-easyui-1.3.1/themes/default/easyui.css" rel="stylesheet"
        type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <ajaxToolkit:ToolkitScriptManager runat="Server" EnableScriptGlobalization="true"
        EnableScriptLocalization="true" ID="ScriptManager1" />
    <table cellspacing="0" cellpadding="0" style="width: 100%; height: 30px; padding-bottom: 5px;
        border: 1px; border-color: #66CCFF;">
        <tr style="background-image: url('../../images/管理员页面/title_bg1.jpg'); background-repeat: repeat-x;">
            <td style="font-weight: bold; font-size: large; font-family: 仿宋;">
                <strong>【家教辅导基本信息管理】</strong>
            </td>
        </tr>
    </table>
    <table class="editTable" cellspacing="1">
        <tr>
            <th>
                省：
            </th>
            <td>
                <asp:DropDownList ID="drpSheng" runat="server" Height="20px" Width="100px" OnTextChanged="drpSheng_TextChanged"
                    AutoPostBack="true">
                </asp:DropDownList>
            </td>
            <th>
                市：
            </th>
            <td>
                <asp:DropDownList ID="drpShi" runat="server" Height="20px" Width="100px" OnTextChanged="drpShi_TextChanged"
                    AutoPostBack="true">
                </asp:DropDownList>
            </td>
            <th>
                区：
            </th>
            <td>
                <asp:DropDownList ID="drpQu" runat="server" Height="20px" Width="100px">
                </asp:DropDownList>
            </td>
            <th>
                所属类型
            </th>
            <td>
                <asp:DropDownList ID="drpType" runat="server" Height="20px" Width="100px">
                </asp:DropDownList>
            </td>
            <th>
                详细地址
            </th>
            <td>
                <asp:TextBox ID="txtAddress" runat="server" Height="20px" MaxLength="50"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <th>
                是否需要车贴
            </th>
            <td>
                <asp:DropDownList ID="drpSFXYCT" runat="server" Height="20px" Width="100px">
                </asp:DropDownList>
            </td>
            <th>
                是否有报名测试
            </th>
            <td>
                <asp:DropDownList ID="drpIsBM" runat="server" Height="20px" Width="100px">
                </asp:DropDownList>
            </td>
            <th>
                辅导方式
            </th>
            <td>
                <asp:TextBox ID="txtKFDFS" runat="server"></asp:TextBox>
            </td>
            <th>
                家教时间
            </th>
            <td colspan='3'>
                从：<asp:TextBox ID="txtTimeFrom" runat="server" class="easyui-datebox"></asp:TextBox>到：<asp:TextBox
                    ID="txtTimeTo" runat="server" class="easyui-datebox"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="10">
                <asp:Button ID="Button1" runat="server" Text="搜索" OnClick="btnSearch_Click" />
            </td>
        </tr>
    </table>
    <br />
    <asp:ListView ID="lvDate" runat="server" DataKeyNames="ID" OnItemDeleting="lvDate_ItemDeleting">
        <LayoutTemplate>
            <table class="editTable" width="100%" cellspacing="1">
                <tr>
                    <th>
                        所属师资
                    </th>
                    <th>
                        所属机构
                    </th>
                    <th>
                        省市
                    </th>
                    <th>
                        可授课区域
                    </th>
                    <th>
                        报名测试
                    </th>
                    <th>
                        可辅导方式
                    </th>
                    <th>
                        薪酬要求
                    </th>
                    <th>
                        车贴
                    </th>
                    <th>
                        详细介绍
                    </th>
                    <th>
                        支付方式
                    </th>
                    <th>
                        家教时间
                    </th>
                    <th>
                        操作
                    </th>
                </tr>
                <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <%#GetSZJBXX(Eval("SZID"))%>
                </td>
                <td>
                    <%#GetJGJBXX(Eval("JGID"))%>
                </td>
                <td>
                    <%#GetShengShiName(Eval("ProvinceID"), Eval("CityID"))%>
                </td>
                <td>
                    <%#GetQuName(Eval("ReginIDs").ToString())%>
                </td>
                <td>
                    <%#Enum.GetName(typeof(JJFD.IsOrNot), Eval("BMCSID"))%>
                </td>
                <td>
                    <%#Eval("KFDFS")%>
                </td>
                <td>
                    <%#Eval("XCYQ")%>
                </td>
                <td>
                    <%#Enum.GetName(typeof(JJFD.IsOrNotCT), Eval("SFXYCT"))%>
                </td>
                <td>
                    <%#Eval("XXJS")%>
                </td>
                <td>
                    <%#Eval("ZFFS")%>
                </td>
                <td>
                    <%#DongDong.Common.Misc.ConvertToShortDateTime(Eval("JJSJFrom"), "yyyy年MM月dd日")%>到<%#DongDong.Common.Misc.ConvertToShortDateTime(Eval("JJSJTo"), "yyyy年MM月dd日")%></td>
                <td>
                    <asp:LinkButton ID="lbtnDelete" runat="server" Text="删除" OnClientClick="return confirm('您确定要删除该项吗?');"
                        CommandName="Delete"></asp:LinkButton>
                </td>
            </tr>
        </ItemTemplate>
        <EmptyDataTemplate>
            没有数据<br />
            <br />
        </EmptyDataTemplate>
    </asp:ListView>
    <div style="padding: 4px; text-align: center;">
        <asp:DataPager ID="Pager" runat="server" PagedControlID="lvDate" OnPreRender="Pager_PreRender"
            PageSize="20">
            <Fields>
                <asp:NumericPagerField ButtonCount="10" CurrentPageLabelCssClass="CurrentPage" NumericButtonCssClass="Page" />
                <asp:NextPreviousPagerField ShowLastPageButton="true" ShowPreviousPageButton="true"
                    ShowFirstPageButton="true" />
                <asp:TemplatePagerField>
                    <PagerTemplate>
                        共<%=Pager.TotalRowCount%>条
                    </PagerTemplate>
                </asp:TemplatePagerField>
            </Fields>
        </asp:DataPager>
    </div>
    <asp:HiddenField ID="hdlUserID" runat="server" />
    <br />
    <script src="../../Scripts/jquery-easyui-1.3.1/jquery.easyui.min.js" type="text/javascript"></script>
</asp:Content>


